﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace SpellChecker
{
    public class StringRow
    {
        #region Properties
                
        public string Value { get; set; }
        public List<int> Indexes { get; set; }
        internal double Priority { get; set; }

        #endregion

        public StringRow(String str)
        {
            this.Value = str;
            this.Indexes = new List<int>();
        }
        public StringRow() : this("") { }

        public override string ToString()
        {
            return this.Value;
        }

        public static implicit operator String(StringRow row)
        {
            return row.Value;
        }
    }    
}
